package com.example.controller;

import com.example.service.ReceiverTopicService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2018/12/7
 * @Description: 类描述
 **/
@Slf4j
@Controller
public class ReceiverTopicController {

    @Autowired
    private ReceiverTopicService receiverTopicService;

    @GetMapping("sendTopic")
    @ResponseBody
    public Object sendTopic(){
        receiverTopicService.sendTopic();
        return "ok";
    }
}
